open class C : B() {
    open inner class Z : Y() {
        override fun f() {}
    }
}